package top.cardone.security.shiro.func;

import lombok.Setter;
import top.cardone.core.util.func.Func1;

/**
 * Created by Administrator on 2016/7/22.
 */
public class ReadCredentialsForMd5Func implements Func1<Object, Object> {
	@Setter
	private String key = "cardone.";

	@Override
	public Object func(Object principal) {
		return org.apache.commons.codec.digest.DigestUtils.md5Hex(key + principal);
	}
}